package com.kykj.kykj.service.impl;

import com.kykj.kykj.dao.ArticlesReplyDao;
import com.kykj.kykj.entity.ArticlesReplyEntity;
import com.kykj.kykj.service.ArticlesReplyService;
import com.kykj.kykj.vo.ArticlesReplyVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticlesReplyServiceImpl implements ArticlesReplyService {

    @Resource
    ArticlesReplyDao articlesReplyDao;
    @Override
    public List<ArticlesReplyEntity> getReplyList(int articleId) {
        return articlesReplyDao.getReplyList(articleId);
    }

    @Override
    public int addReply(ArticlesReplyVo articlesReplyVo) {
        return articlesReplyDao.addReply(articlesReplyVo);
    }

    @Override
    public int delReply(int id) {
        return articlesReplyDao.delReply(id);
    }

    @Override
    public int upReply(ArticlesReplyVo articlesReplyVo) {
        return articlesReplyDao.upReply(articlesReplyVo);
    }
}
